using System;
using System.Collections.Generic;
using System.Text;

namespace Parsifal
{
    public class PlaylistItem
    {
        private string mSong;
        private string mArtist;
        private string mDuration;
        private int mSeconds;
        private string mNickServer;
        private int mIndex;
        private bool mIsActive = false;
        private bool mIsLocal = false;
        private string mPhysicalPath = "";
        private string mGroupName = "";
        private PLI_TYPE mType = PLI_TYPE.PLI_FILE;


        public enum PLI_TYPE
        {
            PLI_FILE,
            PLI_LIVE
        }



        public PlaylistItem()
        {
            //cotruttore
            string unica = System.Guid.NewGuid().ToString();
            mGroupName = "SG_" + unica;
        }

        public string Song
        {
            get
            {
                return mSong;
            }
            set
            {
                mSong = value;
            }
        }

        public int Seconds
        {
            get
            {
                return mSeconds;
            }
            set
            {
                mSeconds = value;
            }
        }


        public string GroupName
        {
            get
            {
                return mGroupName;
            }
            set
            {
                mGroupName = value;
            }
        }

        public string Artist
        {
            get
            {
                return mArtist;
            }
            set
            {
                mArtist = value;
            }
        }

        public string Duration
        {
            get
            {
                return mDuration;
            }
            set
            {
                mDuration = value;
            }
        }

        public string NickServer
        {
            get
            {
                return mNickServer;
            }
            set
            {
                mNickServer = value;
            }
        }

        public int Index
        {
            get
            {
                return mIndex;
            }
            set
            {
                mIndex = value;
            }
        }

        public bool isActive
        {
            get
            {
                return mIsActive;
            }
            set
            {
                mIsActive = value;
            }
        }

        public bool isLocal
        {
            get
            {
                return mIsLocal;
            }
            set
            {
                mIsLocal = value;
            }
        }

        public string PhysicalPath
        {
            get
            {
                return mPhysicalPath;
            }
            set
            {
                mPhysicalPath = value;
            }
        }

        public PLI_TYPE Type
        {
            get
            {
                return mType;
            }
            set
            {
                mType = value;
            }
        }
    }
}
